<%--
  Created by IntelliJ IDEA.
  User: 27933
  Date: 2021/10/18
  Time: 16:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/themes/gray/easyui.css">
    <link rel="stylesheet" type="text/css" href="/themes/icon.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
</head>
<body>
<table id="mytable"></table>
<script>
    $("#mytable").datagrid({
        url: "/fenYeController",//访问到的目标
        columns: [[
            {field: "id", title: "编号", width: 100},
            {field: "name", title: "姓名", width: 100},
            {field: "age", title: "年龄", width: 100},
        ]],//展示的每一列
        fitColumns: true,
        singleSelect: true,
        pagination: true,//分页菜单栏
        pageList: [2, 4, 6, 8],//一页多少条选择
        pageSize: 2//一页多少条默认
    });
</script>

</body>
</html>
